<script setup>
import HelloWorld from './components/HelloWorld.vue'
import NavBottomBar from '@/components/NavBottomBar.vue'
import BottomTabbar from "@/components/BottomTabbar.vue"
import { useRouter } from 'vue-router';
import { ref } from "vue"
import '@/style/index.css';


document.addEventListener('plusready', function (a) {
  var first = null;
  plus.key.addEventListener('backbutton', function () {
    //首次按键，提示‘再按一次退出应用’
    if (!first) {
      first = new Date().getTime();
      console.log('再按一次退出应用');//用自定义toast提示最好
      setTimeout(function () {
        first = null;
      }, 1000);
    } else {
      if (new Date().getTime() - first < 1000) {
        plus.runtime.quit();
      }
    }
  }, false);
});


</script>

<template class="oppo-box">


  <keep-alive>
    <router-view class="hide-scrollbar" v-if="$route.meta.keepAlive" />
  </keep-alive>

  <router-view class="hide-scrollbar" v-if="!$route.meta.keepAlive" />


</template>

<style scoped>





</style>
